<template>
  <div>
    <h1>My Website</h1>
    <MyComponent title="My Items" :items="items" />
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";
import MyComponent from "./testChild.vue";

interface Item {
  id: number;
  name: string;
}

export default defineComponent({
  components: {
    MyComponent,
  },
  data() {
    return {
      items: [
        { id: 1, name: "Item 1" },
        { id: 2, name: "Item 2" },
        { id: 3, name: "Item 3" },
      ] as Item[],
    };
  },
});
</script>
